package com.czy.security.service.impl;

import com.czy.security.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @作者:褚
 * @工程名:spring_security
 * @方法:RoleServiceImpl
 * @创建时间:2022/4/12 14:58
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Override
    public List<String> getRoleById(Integer aid) {
        List<String> roleList = new ArrayList<>();
        roleList.add("ROLE_login_manage");
        if (aid==1){
            roleList.add("ROLE_admin_manage");
        }else if (aid==2){
            roleList.add("ROLE_role_manage");
        }
        return roleList;
    }
}
